<div style='display:flex;text-align:center;width:98%;margin:0 auto;margin-bottom:20px'>
	<div style='flex:1;border:1px solid;background:blue' id='Me_Info'>我发布的信息</div>

	<div style='flex:1;border:1px solid'  id='Me_ChangePwd'>
		<a ><div>修改密码</div></a>
	</div>
	<div style='flex:1;border:1px solid'>
		<a id='Me_Exit'>退出</a>
	</div>
</div>

<div id="Me_Main"></div>

<script>
	if(sessionStorage.userInfo !== true){
		$('#Me_ChangePwd').hide();
	}
	$(function(){
		Me_GetInfoList();


		


		//-- 点击我的信息
		$('#Me_Info').click(function(){
			$('#Me_Info').css('background','blue');
			$('#Me_ChangePwd').css('background','#eee');
			Me_GetInfoList();
		});

		//-- 点击修改密码
		$('#Me_ChangePwd').click(function(){
			$('#Me_Info').css('background','#eee');
			$('#Me_ChangePwd').css('background','blue');
			$.ajax({
				url:'__APP__/User/User/change_pwd',
				success:function(res){
					$('#Me_Main').html(res);
					sessionStorage.ChangePwd=escape(res);
				}
			});
		});






		//-- 退出 
		$('#Me_Exit').click(function(){
			$.ajax({
				url:'__APP__/User/User/exits_ajax',
				success:function(res){
					if(res == 'ok'){
						sessionStorage.userInfo='';
						alert('已安全退出！');
						index_init();
					}else{
						alert('出现异常！');
					}
				}
			});
		});




		function Me_GetInfoList(){
			var t = new Date().getTime();
			if(sessionStorage.Page_MeMain && parseInt(sessionStorage.Page_MeMainStamp)+60000 > t){
			//	$('#Me_Main').html(unescape(sessionStorage.Page_MeMain));
			}else{
			}
				$.ajax({
					url:'__URL__/me_main_info',
					success:function(res){
						sessionStorage.Page_MeMain = escape(res);
						sessionStorage.Page_MeMainStamp = t;
						$('#Me_Main').html(res);
					}
				});
		}
	});
</script>